package com.ziyun.pop.modules.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.order.entity.OrderItemEntity;
import com.ziyun.pop.modules.order.vo.FactoryOrderItemVo;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 订单详情表
 *
 * @author gaosheng
 * @email
 * @date 2018-08-07 15:31:52
 */
public interface OrderItemService extends IService<OrderItemEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 订单商品查询
     * @param orderId
     * @return
     */
    List<OrderItemEntity> selectByOrderId(Long orderId);

    /**
     * 工厂订单商品查询
     * @param orderId
     * @return
     */
    List<FactoryOrderItemVo> selectFactoryOrderItemByOrderId(Long orderId);

    /**
     * 数据更新
     * @param updateMap
     * @param itemId
     * @return
     */
    boolean updateByMap(Map<String, Object> updateMap, Integer itemId);

}

